package com.itheima;

import com.itheima.controller.BookController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot0101QuickstartApplication {

  public static void main(String[] args) {
    ConfigurableApplicationContext ctx = SpringApplication.run(Springboot0101QuickstartApplication.class, args);
    BookController bean = ctx.getBean(BookController.class);
    System.out.println("bean ===>" + bean);
    User user = ctx.getBean(User.class);
    System.out.println(user);
  }

}
